import { createRouter, createWebHashHistory } from 'vue-router'
import index from '../views'
import home from '../views/pages/home.vue'
import login from '../views/pages/login.vue'
import newsList from '@/views/pages/news/list'
import yonghuList from '@/views/pages/yonghu/list'
import yonghuDetail from '@/views/pages/yonghu/formModel'
import yonghuAdd from '@/views/pages/yonghu/formAdd'
import yonghuRegister from '@/views/pages/yonghu/register'
import yonghuCenter from '@/views/pages/yonghu/center'
import yuangongList from '@/views/pages/yuangong/list'
import yuangongDetail from '@/views/pages/yuangong/formModel'
import yuangongAdd from '@/views/pages/yuangong/formAdd'
import fangjianxinxiList from '@/views/pages/fangjianxinxi/list'
import fangjianxinxiDetail from '@/views/pages/fangjianxinxi/formModel'
import fangjianxinxiAdd from '@/views/pages/fangjianxinxi/formAdd'
import dingdanxinxiList from '@/views/pages/dingdanxinxi/list'
import dingdanxinxiDetail from '@/views/pages/dingdanxinxi/formModel'
import dingdanxinxiAdd from '@/views/pages/dingdanxinxi/formAdd'
import tuifangxinxiList from '@/views/pages/tuifangxinxi/list'
import tuifangxinxiDetail from '@/views/pages/tuifangxinxi/formModel'
import tuifangxinxiAdd from '@/views/pages/tuifangxinxi/formAdd'
import dasaojiluList from '@/views/pages/dasaojilu/list'
import dasaojiluDetail from '@/views/pages/dasaojilu/formModel'
import dasaojiluAdd from '@/views/pages/dasaojilu/formAdd'
import jingdianjieshaoList from '@/views/pages/jingdianjieshao/list'
import jingdianjieshaoDetail from '@/views/pages/jingdianjieshao/formModel'
import jingdianjieshaoAdd from '@/views/pages/jingdianjieshao/formAdd'
import youlanluxianList from '@/views/pages/youlanluxian/list'
import youlanluxianDetail from '@/views/pages/youlanluxian/formModel'
import youlanluxianAdd from '@/views/pages/youlanluxian/formAdd'
import daoyoufuwuList from '@/views/pages/daoyoufuwu/list'
import daoyoufuwuDetail from '@/views/pages/daoyoufuwu/formModel'
import daoyoufuwuAdd from '@/views/pages/daoyoufuwu/formAdd'
import daoyouyuyueList from '@/views/pages/daoyouyuyue/list'
import daoyouyuyueDetail from '@/views/pages/daoyouyuyue/formModel'
import daoyouyuyueAdd from '@/views/pages/daoyouyuyue/formAdd'
import daociminsuList from '@/views/pages/daociminsu/list'
import daociminsuDetail from '@/views/pages/daociminsu/formModel'
import daociminsuAdd from '@/views/pages/daociminsu/formAdd'

const routes = [{
		path: '/',
		redirect: '/index/home'
	},
	{
		path: '/index',
		component: index,
		children: [{
			path: 'home',
			component: home
		}
		, {
			path: 'newsList',
			component: newsList
		}
		, {
			path: 'yonghuList',
			component: yonghuList
		}, {
			path: 'yonghuDetail',
			component: yonghuDetail
		}, {
			path: 'yonghuAdd',
			component: yonghuAdd
		}
		, {
			path: 'yonghuCenter',
			component: yonghuCenter
		}
		, {
			path: 'yuangongList',
			component: yuangongList
		}, {
			path: 'yuangongDetail',
			component: yuangongDetail
		}, {
			path: 'yuangongAdd',
			component: yuangongAdd
		}
		, {
			path: 'fangjianxinxiList',
			component: fangjianxinxiList
		}, {
			path: 'fangjianxinxiDetail',
			component: fangjianxinxiDetail
		}, {
			path: 'fangjianxinxiAdd',
			component: fangjianxinxiAdd
		}
		, {
			path: 'dingdanxinxiList',
			component: dingdanxinxiList
		}, {
			path: 'dingdanxinxiDetail',
			component: dingdanxinxiDetail
		}, {
			path: 'dingdanxinxiAdd',
			component: dingdanxinxiAdd
		}
		, {
			path: 'tuifangxinxiList',
			component: tuifangxinxiList
		}, {
			path: 'tuifangxinxiDetail',
			component: tuifangxinxiDetail
		}, {
			path: 'tuifangxinxiAdd',
			component: tuifangxinxiAdd
		}
		, {
			path: 'dasaojiluList',
			component: dasaojiluList
		}, {
			path: 'dasaojiluDetail',
			component: dasaojiluDetail
		}, {
			path: 'dasaojiluAdd',
			component: dasaojiluAdd
		}
		, {
			path: 'jingdianjieshaoList',
			component: jingdianjieshaoList
		}, {
			path: 'jingdianjieshaoDetail',
			component: jingdianjieshaoDetail
		}, {
			path: 'jingdianjieshaoAdd',
			component: jingdianjieshaoAdd
		}
		, {
			path: 'youlanluxianList',
			component: youlanluxianList
		}, {
			path: 'youlanluxianDetail',
			component: youlanluxianDetail
		}, {
			path: 'youlanluxianAdd',
			component: youlanluxianAdd
		}
		, {
			path: 'daoyoufuwuList',
			component: daoyoufuwuList
		}, {
			path: 'daoyoufuwuDetail',
			component: daoyoufuwuDetail
		}, {
			path: 'daoyoufuwuAdd',
			component: daoyoufuwuAdd
		}
		, {
			path: 'daoyouyuyueList',
			component: daoyouyuyueList
		}, {
			path: 'daoyouyuyueDetail',
			component: daoyouyuyueDetail
		}, {
			path: 'daoyouyuyueAdd',
			component: daoyouyuyueAdd
		}
		, {
			path: 'daociminsuList',
			component: daociminsuList
		}, {
			path: 'daociminsuDetail',
			component: daociminsuDetail
		}, {
			path: 'daociminsuAdd',
			component: daociminsuAdd
		}
		]
	},
	{
		path: '/login',
		component: login
	}
	,{
		path: '/yonghuRegister',
		component: yonghuRegister
	}
]

const router = createRouter({
  history: createWebHashHistory(process.env.BASE_URL),
  routes
})

export default router
